weight 2 bytes, cost 2 bytes, attack value 1 byte, ?? 3 bytes

1a464 knife 7 dmg. 150g = 0096 (first item table entry). dagger

1a46c dagger 15 dmg. 500g = 01F4. cost 01F4. short sword

1a474 broadsword 30dmg. 3000g = 0BB8. longsword

1a47c holy sword 6000wt 50dmg.

1a484 silver sword 8000wt 70dmg

1a48c flaming sword 3000wt 50dmg

1a494 light saber 100dmg

1a49c sling 20 dmg/10

1a4a4 arrow 30 dmg/10 wt 1500g=05DC, cost 0064. javelin

1a4ac bow 50dmg/50 weight 2000g= 07D0. short bow

1a4b4 long bow 180dmg/50 weight 2500g= 09C4

1a4bc club 10dmg

1a4c4 ax 40dmg weight 3000 0BB8

1a4cc battle axe weight/80dmg
1a4ce battle axe cost
1a4d0 4 bytes: 50(dec:80), 00, 01, 00; weapon power and type/melee flag?

weight 2 bytes, cost 2 bytes, defense value 2 bytes, ?? 2 bytes

1a4dc+1 chainmail's weight
1a4de+1 chainmail cost in hex, MSD first. divided by 10. 0x0226 = 550 * 10=5500 gold
1a4e0+1 chainmail's defense value; 20
1a4e2+1 special effect?

1a4e4 bronze mail 7000wt 40def. steel mail

1a4ec silver mail 20000wt->15000 50000cost 80def->60

1a4f4 magical mail 5000wt 20000cost 30def

1a4fc fae mail 10000wt->7000 5000cost 60def->70

1a504 shield 5def

1a50c battle shield 10def. mind shield

1a514 bronze shield 20def. steel shield

1a51c life shield 30def

1a524 fae shield 40def 5000g->3500

1a52c helmet? 3def

1a534 japanese helmet? 10def

1a53c star helmet 4000wt 15def

1a544 fae helmet 3000wt->2000 25def

1a54c flask of medicine	a88e sets to 20hp restored->50 $32

1a554 ampule of antitoxin

1a55c bundle of herbs

1a564 enhanced medicine a904 sets to 60hp restored->100 $64

1a56c strong medicine a928 sets to 100hp restored->200 $C8
strong medicine subroutine handling numbers>127:
move #$C8,D0; bsr c4c2
@a928:	303c 00c8; 6100 c4c2;
jsr 016792; rts;
@6df0:	4eb9 00016792; 4e75

1a594 cross of god

1a59c stone of soldier

1a5a4 camping gear. cost 0014

1a5ac cat's eye

1a5b4 talisman. magic talisman

1a5bc food weight. 188g carbs * 4 Calories = 750C. 200g rounded up. 00C8.
1a5be food cost. 0002? AC96 hp restoration stored. 30->15 $F	774E adds hp when automatically eaten

1a5c4 lamp. 286g bronze lamp + 220g (half pint) olive oil ~= 500g. 01F4 

1a5cc lamp oil weight? 200g. 00C8

1a5d4 flask of super oil

1a5dc $10 coin. silver. 1 real = 3g. 0003
1a5e4 $100 coin. silver. 1 peso = 25g ~=30g. 001E
1a5ec $1000 coin. made of gold, 15/16x silver value. 20g. 0014

1a5f4 something with 100 weight and no value?

1a636 jim's scroll

1a654 horn

1a65c statue of varalys

1a664 exit talisman

1a66c space compass

1a67c time door talisman

1a69b end of item table


0  1  2  3  4  5  6  7  8  9
10 11 12 13 14 15 16 17 18 19

A  B  C  D  E  F  G  H  I  J  K  L  M  N  O  P  Q  R  S  T  U  V  W  X  Y  Z
21 22 23 24 25 26 27 28 29 2A 2B 2C 2D 2E 2F 30 31 32 33 34 35 36 37 38 39 3A


20=space 61=a 01=! 02=" 03=' 04=$ 05=~ 06=& 07=C circle 08=?! 09=; 0A=X 0B=+ 0C=, 0D=- 0E=. 0F=/
1A=: 1B=black square 1C=black square 1D== 1E=cursor 1F=? 00=completely black square


24ebf 29B
000976-006E3D free? 0453BC-046033 free? 05DD81-05EBB8 free? 061B25-062585 free? 07FF3E-07FFFD free? 6F060-6FFFF free?

current xp stored@ e02a. robber@20: 459hp@15	priest@20: 281/322hp	monk@20: 81hp@04/127@06		warrior@20: 163hp@08/238@0B. class stored@ e009, 33=monk
	90dmg in mouth@2, 200-280 outside@8. 200hp minimum w/ life water	ffe00a maxhp
	ffe00f is hp growth: monk $04-07 89e6 ($04), warrior $08-0b 89c2 ($08), priest $0d-10 89da ($0d), robber $12-15 89ce ($12)


spell cost: magic lvl squared * 25 (50 for robber/warrior)
level cost: player lvl squared * 50
carry weight = player str * 140; wield=player str * 42 + 500	42 is 2A; 500 is 01f4; 140 is 8C


Xfix text placement at new ending line. pointer at 24d22, string at 07f6cd.
	18b36: 0e->d0->asl#2->38; 58b->d1->b16->cb16; 03->d2->6000 ; 0d->d3->asl d3,d2->6000
	d1(58b)->d0->asl#1->b16. change 018b28 to 0508. 18b38 2nd+ line, change to 0587. 
Xfix life bar turning yellow. FFE00A maxhp. 166EE maxhp tested. 16a76-16d31 data table; 16b16+ for tile data.
	1697E #01 put in RAM. 16992 table data put in RAM for final byte. bar bytes moved to FFFDC8-D2.
	16a1e loads $xxxxxxxx from data table, put into VRAM at 16a5a. change 016707 from 05 to 00 to turn green.
	if first bytes are 00, turned to 09; if last byte is 00, turned to ff
	hihealth:01(*ten),0A(16a75+7?). 	16c7e+4=16c82=$66666666
	16hp:01(*one),24 (16a75+d4(i.e. 3)). 	16b16+4=16b1a=$44444444
Xtry top-aligning numbers. 0 starts at RAM 0200 (449b4), / at 01E0 (4499c), fix comma at 0180 (44954), fix ! at 4484c
Xredraw font numbers
Xfix life bar/AC overflow bug
	life bar 4000 vdp offset, attack 4160, armor 4420. maxhp FFE00A, currentHP FFE00C. FFFDC8 ram spot that
	holds tile data for lifebar.  0c1ca 0c34a 0c64a set to 0120
	16fa0=e20a 1703c=e215 17174=e22b
Xfix bug where deposit when full loses deposited money	00FFE08E principal; 00FFE07A 1000g coins
	cda0-a3 relocated, replaced with bsr to new spot. "6100 0190", bsr to cf32. relocate to 6e30.
	bsr -5f84 aka 6100 A07E. divu 03e8,d1 82FC 03E8. add.b d1,$e07a D338 E07A. bsr to cf32 6100 6108. rts 4E75
	CF32-6E2D=6105.
	at 6e30: 82fc 03e8 d338 e07a 6100 60f8 4e75
	at cda0: 6100 a08e
Xspace out stat sidebar; FF0300 is where first pixel of 'Attack point' is stored in main RAM. 46274-6 where in ROM?
	first 3 bytes, decompressed to 8 pixels (normally takes 4 bytes @ 4bpp). FF0400 blank spot after 'point'
	$249249 converts to 11111111 in octal (base 8). 46334-6 ROM pattern
Xinvestigate HP overflow issue at high levels


REBALANCED ONLY:
Ximprove carry weight; FFE02E lift stored. 8740 during char creation. c770 during levelup. lift + 3000g:
	@8740, "3340 002E" relocated. addi.w #0BB8,D0 0640 0BB8. move.w D0,$002E(A1) 3340 002E. rts 4E75.
	@c770, same but move.w into A0
	at 8740: 6100 E6E2
	at c770: 6100 A6A6
	at 6e24: 0640 0BB8. 3340 002E. 4E75.
	at 6e18: 0640 0BB8. 3140 002E. 4E75.
Xcheaper inns!	ffe078 10g coins. ffe079 100g coins. ffe07a 1000g coins. $1000 to $100: change $c25e to 0064
Xlose less karma per good monster kill. karma stored @ e029. lose 4 instead of 40: f8b0 change 28 to 04
Xmake water of life heal more; lvl*2 HP restored; lvl*8: change 7b0a to E740
	FFE00C current life stored; FFE00A maxhp. ffe008 level is stored
Xnerf hunger. lvl*1 hp every 16mins. 7782 subs hp. lvl/2 hp:
	asr.b #1,D0 E200. bne #$02 6602. moveq #1,D0 7001. sub.w D0,$000C(A2)
	at 7782: 6100 F686
	at 6e0A: E200. 6602. 7001. 916A 000C. 4E75. 12Bytes
Xreduce starting wealth to 200. change 8805 to E079
Xnerf heavy. Lifts stored @FFE02E, Weight stored @FFE032. e036 X1-X2, lower 4 bits. f61c updates heavy status.
	fb68 reads e036. 4x as long with X1. 16x as long with X2. 64x as long with X3. halves instead of quarters:
	0-3 offset from 00fba4, fastest. fba8, fast. fbac, normal. fbb0, slow. fbb4, slowest.
	01 07 1f 7f	03 0f 3f ff	07 1f 7f ff	0f 3f ff ff 	1f 7f ff ff
	01 03 07 1f	03 07 0f 1f	07 0f 1f 3f	0f 1f 3f 7f	1f 3f 7f ff
Xnerf tiredness. 1/2 STR when sleepy 0 hours, 1/4 after 1 hour, 1/8 after 2 hours, 1/16 after 3 hours. bitshift?
	ffe010 str & ffe122 current str. 77ca writes to cur str. reduces cur str by level:
	@77C4: 6100 F634. 4E71	(bsr $6DFA; NOP;)
	@6DFA: 1038 E122. 9038 E008. 6402. 7001. 4E75 (move.b ($E122),D0; sub.b ($E008),D0; bcc #$02; moveq #1,D0; rts)
Xnerf Stop traps: "move my". number of struggle moves @ FFE30B. 121EF sets to $14. changed to $05
Xmake catseye last longer. ffe117 light duration catseye $1E=30dec, ac32 sets. ffe115 for Illuminate, 9fd2 sets max.
	9fb0 adds 1/8 Int., 9fb2 adds base
Xfix boss exploit by resetting game speed. for dragon inject @ 1483a. for kaizack inject @ 14994
	normal speed ffe037=$20 (32dec), ffe126=2; fast speed $10, 1; very fast $00, 0; slow $30, 03; very slow $40, 04
	@1483a 4eb9 00006dcc	jsr $6dcc
	@14994 4eb9 00006dd4	jsr $6dd4
	@6dcc lea ($0002819c),A0; bra #6; lea ($00ff0000),A1; andi.b #$0F, ($E037); ori.b #$20, ($E037) ;
	move.b #$2, ($E126); rts
		41f90002819c; 6006; 43f900ff0000; 0238 000f e037; 0038 0020 e037; 11fc 0002 e126; 4e75
Xrebalance enemies. 0f308 calculates dmg to player
	+0 is move speed; +2-3 is hp(50); +5 is to-hit; +6 is evade; +7 is atk; +8 is def; +9 magic power?;
	+13 chance of using magic? +15 drop chance; +16-17 is xp; +18-19 is money; +22 is atk range (1 is melee).
	+23 atk speed (delay)
	if +1 3rd bit clear it moves, otherwise stays still. other flags, like evil bit.
Xbuff Monk hp growth range from 4-7 to 6-9

19962 wight; 1970A minor slime; 197e2 balubalu; 197fa elgar; 199da vampire; 19722 dark eye; 199f2 hellsmoke; 1973a zombie
	1979a wraith; 1985a robot warrior; 19932 auto sentry; 19872 defender
	1994a beacon; 1982a guba; 19842 garba; 19902 guyzer; 1991a sala; 19962 wight; 196da heavy slime; 19752 ghoul
	197b2 giant beetle; 197ca giant ant; 1988a black knight; 1976a skeleton; 19a0a varalys; 198a2 dark warrior
	198ba baklus; 1997a grim reaper; 198d2 haldorce; 19992 hell raiser; 198ea zod; 199c2 man-eating tree; 199aa tree spirit
slime		30g	/ 4xp		10atk
man-eating tree	50g	/ 8xp->10xp	25atk->15 range->5 atkspd->05
balubalu	100g->200/15xp->30	41atk->30 5atkspd
elgar		150g->300/30xp->60	23atk
vampire		200g->400/45xp->90	92atk->30 2atkspd
dark eye	115g->230/50xp->100	112atk->50 4atkspd
hellsmoke				110atk
wraith			 /95xp->190	70atk	range->2 atkspd->03
zombie		800g	 /110xp->220	160atk
dragon					10dmg (fireball) set @ 15d48; 40dmg (touch) set @ 14b96
robot warrior	150g	 /105xp->210	80atk
auto sentry		 /80xp->160	100atk atkspd->04
defender	300g	 /130xp->260	100atk atkspd->03
beacon			 /140xp->280	100atk atkspd->03
guba		900g	 /90xp->180	73atk
garba		500g	 /95xp->190	151atk
guyzer		500g	 /188xp->380	65atk atkspd=2
sala		300g	 /160xp		250atk
wight		300g	 /160xp		200atk->160 range->4 atkspd->05
heavy slime	100g->200/150xp->300	254atk->200
ghoul		250g->500/150xp->300	126atk
giant beetle	200g->400/180xp->360	200atk atkspd->4
giant ant	1500g	 /195xp->390	187atk
black knight	350->700 /200xp->400	250atk atkspd=2->4
skeleton	1200g	 /200xp->400	255atk atkspd=2->4
varalys			400hp		230atk magicpower=200->150
dark warrior	450g	 /300xp->600	215atk atkspd=2
baklus		400g	 /326xp->650	210atk atkspd=4
grim reaper	250g	 /337xp->666	200atk atkspd=2
haldorce	500g	 /361xp->720	165atk atkspd=4
hell raiser	300g	 /432xp->860	150atk atkspd=2
zod		1000g	 /500xp->1000	205atk atkspd=2
kaizack		10-50dmg->4-20 (ranged) calc@ 15d08; 80dmg->60 (touch) set@ 15490; 4dmg->2 (in mouth) set@ 154ca

player guide enemy chart: 1) HP 2) str (ability to hit) 3) agility (evade) 4) attack 5) defense 6) magic power 7) probability of using magic 8)xp gained 9)money gained 10) probability of dropping item


numbers top-left aligned@ 449b4
252249 289449 449289 449289 449289 289449 252249  24a249 252249 24a249 24a249 24a249 24a249 252449
292449 449289 249289 252449 289249 449249 492489  292449 449289 249289 24a449 249289 449289 292449
249449 24a449 251449 289449 449449 492489 249449  492489 449249 449249 492449 249289 449289 292449
292449 449289 449249 492449 449289 449289 292449  492491 249289 249449 24a249 251249 251249 251249
292449 449289 449289 292449 449289 449289 292449  292449 449289 449289 292489 249289 449289 292449